package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.AlertRuleDto;
import com.zzyl.vo.AlertRuleVo;

public interface AlertRuleService {
    //新增告警规则
    void createAlertRule(AlertRuleDto alertRuleDto);

    //分页查询告警规则
    PageResponse<AlertRuleVo> getPage(Integer pageNum, Integer pageSize, String alertRuleName, String functionId, String productKey);

    //根据id查询告警规则
    AlertRuleVo read(Long id);

    //更新告警规则
    void update(Long id, AlertRuleDto alertRuleDto);

    //根据id删除告警规则
    void delete(Long id);

    //启用-禁用
    void updateStatus(Long id, Integer status);
}
